home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16813 < prev    next >
Encoding:
Text File  |  1996-08-05  |  931 b   |  22 lines

  1. Newsgroups: comp.lang.c++
  2. Path: undergrad.math.uwaterloo.ca!sckettle
  3. From: sckettle@undergrad.math.uwaterloo.ca (Steve Kettle)
  4. Subject: static initialization order
  5. Sender: news@undergrad.math.uwaterloo.ca (news spool owner)
  6. Message-ID: <Dppwqz.Kt3@undergrad.math.uwaterloo.ca>
  7. Date: Thu, 11 Apr 1996 21:52:11 GMT
  8. Nntp-Posting-Host: noether.math.uwaterloo.ca
  9. Organization: University of Waterloo
  10.  
  11. suppose you have n static objects that depend on each other.  if the dependancy
  12. graph is a forest ( a bunch of trees ) ( a tree is a graph with no cycles ) how
  13. does one guarantee the correct order of construction? The objects in question
  14. could be local to a number of different translation units. 
  15.  
  16. that is my first question, second is i've been told that static data is often
  17. located in memory addresses beyond the start of the heap.  does this at all
  18. contradict the fact that static data is initialzed to 0's at compile time? 
  19.  
  20.  
  21. -- 
  22.